Optimal. Leaf size=178 \[ -\frac {4 d \left (21 c^2-12 c d+7 d^2\right ) \cos (e+f x)}{15 f \sqrt {a \sin (e+f x)+a}}-\frac {2 d^2 (9 c-d) \cos (e+f x) \sqrt {a \sin (e+f x)+a}}{15 a f}-\frac {2 d \cos (e+f x) (c+d \sin (e+f x))^2}{5 f \sqrt {a \sin (e+f x)+a}}-\frac {\sqrt {2} (c-d)^3 \tanh ^{-1}\left (\frac {\sqrt {a} \cos (e+f x)}{\sqrt {2} \sqrt {a \sin (e+f x)+a}}\right )}{\sqrt {a} f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.44, antiderivative size = 178, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {2778, 2968, 3023, 2751, 2649, 206} \[ -\frac {4 d \left (21 c^2-12 c d+7 d^2\right ) \cos (e+f x)}{15 f \sqrt {a \sin (e+f x)+a}}-\frac {2 d^2 (9 c-d) \cos (e+f x) \sqrt {a \sin (e+f x)+a}}{15 a f}-\frac {2 d \cos (e+f x) (c+d \sin (e+f x))^2}{5 f \sqrt {a \sin (e+f x)+a}}-\frac {\sqrt {2} (c-d)^3 \tanh ^{-1}\left (\frac {\sqrt {a} \cos (e+f x)}{\sqrt {2} \sqrt {a \sin (e+f x)+a}}\right )}{\sqrt {a} f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 2649
Rule 2751
Rule 2778
Rule 2968
Rule 3023
Rubi steps
\begin {align*} \int \frac {(c+d \sin (e+f x))^3}{\sqrt {a+a \sin (e+f x)}} \, dx &=-\frac {2 d \cos (e+f x) (c+d \sin (e+f x))^2}{5 f \sqrt {a+a \sin (e+f x)}}-\frac {\int \frac {(c+d \sin (e+f x)) \left (-a \left (5 c^2-c d+4 d^2\right )-a (9 c-d) d \sin (e+f x)\right )}{\sqrt {a+a \sin (e+f x)}} \, dx}{5 a}\\ &=-\frac {2 d \cos (e+f x) (c+d \sin (e+f x))^2}{5 f \sqrt {a+a \sin (e+f x)}}-\frac {\int \frac {-a c \left (5 c^2-c d+4 d^2\right )+\left (-a c (9 c-d) d-a d \left (5 c^2-c d+4 d^2\right )\right ) \sin (e+f x)-a (9 c-d) d^2 \sin ^2(e+f x)}{\sqrt {a+a \sin (e+f x)}} \, dx}{5 a}\\ &=-\frac {2 (9 c-d) d^2 \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{15 a f}-\frac {2 d \cos (e+f x) (c+d \sin (e+f x))^2}{5 f \sqrt {a+a \sin (e+f x)}}-\frac {2 \int \frac {-\frac {1}{2} a^2 \left (15 c^3-3 c^2 d+21 c d^2-d^3\right )-a^2 d \left (21 c^2-12 c d+7 d^2\right ) \sin (e+f x)}{\sqrt {a+a \sin (e+f x)}} \, dx}{15 a^2}\\ &=-\frac {4 d \left (21 c^2-12 c d+7 d^2\right ) \cos (e+f x)}{15 f \sqrt {a+a \sin (e+f x)}}-\frac {2 (9 c-d) d^2 \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{15 a f}-\frac {2 d \cos (e+f x) (c+d \sin (e+f x))^2}{5 f \sqrt {a+a \sin (e+f x)}}+(c-d)^3 \int \frac {1}{\sqrt {a+a \sin (e+f x)}} \, dx\\ &=-\frac {4 d \left (21 c^2-12 c d+7 d^2\right ) \cos (e+f x)}{15 f \sqrt {a+a \sin (e+f x)}}-\frac {2 (9 c-d) d^2 \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{15 a f}-\frac {2 d \cos (e+f x) (c+d \sin (e+f x))^2}{5 f \sqrt {a+a \sin (e+f x)}}-\frac {\left (2 (c-d)^3\right ) \operatorname {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\frac {a \cos (e+f x)}{\sqrt {a+a \sin (e+f x)}}\right )}{f}\\ &=-\frac {\sqrt {2} (c-d)^3 \tanh ^{-1}\left (\frac {\sqrt {a} \cos (e+f x)}{\sqrt {2} \sqrt {a+a \sin (e+f x)}}\right )}{\sqrt {a} f}-\frac {4 d \left (21 c^2-12 c d+7 d^2\right ) \cos (e+f x)}{15 f \sqrt {a+a \sin (e+f x)}}-\frac {2 (9 c-d) d^2 \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{15 a f}-\frac {2 d \cos (e+f x) (c+d \sin (e+f x))^2}{5 f \sqrt {a+a \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.59, size = 155, normalized size = 0.87 \[ -\frac {\left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right ) \left (-2 d \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (-90 c^2-2 d (15 c-d) \sin (e+f x)+30 c d+3 d^2 \cos (2 (e+f x))-29 d^2\right )+(-60-60 i) (-1)^{3/4} (c-d)^3 \tanh ^{-1}\left (\left (\frac {1}{2}+\frac {i}{2}\right ) (-1)^{3/4} \left (\tan \left (\frac {1}{4} (e+f x)\right )-1\right )\right )\right )}{30 f \sqrt {a (\sin (e+f x)+1)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.48, size = 387, normalized size = 2.17 \[ -\frac {\frac {15 \, \sqrt {2} {\left (a c^{3} - 3 \, a c^{2} d + 3 \, a c d^{2} - a d^{3} + {\left (a c^{3} - 3 \, a c^{2} d + 3 \, a c d^{2} - a d^{3}\right )} \cos \left (f x + e\right ) + {\left (a c^{3} - 3 \, a c^{2} d + 3 \, a c d^{2} - a d^{3}\right )} \sin \left (f x + e\right )\right )} \log \left (-\frac {\cos \left (f x + e\right )^{2} - {\left (\cos \left (f x + e\right ) - 2\right )} \sin \left (f x + e\right ) + \frac {2 \, \sqrt {2} \sqrt {a \sin \left (f x + e\right ) + a} {\left (\cos \left (f x + e\right ) - \sin \left (f x + e\right ) + 1\right )}}{\sqrt {a}} + 3 \, \cos \left (f x + e\right ) + 2}{\cos \left (f x + e\right )^{2} - {\left (\cos \left (f x + e\right ) + 2\right )} \sin \left (f x + e\right ) - \cos \left (f x + e\right ) - 2}\right )}{\sqrt {a}} - 4 \, {\left (3 \, d^{3} \cos \left (f x + e\right )^{3} - 45 \, c^{2} d + 30 \, c d^{2} - 17 \, d^{3} - {\left (15 \, c d^{2} - 4 \, d^{3}\right )} \cos \left (f x + e\right )^{2} - {\left (45 \, c^{2} d - 15 \, c d^{2} + 16 \, d^{3}\right )} \cos \left (f x + e\right ) - {\left (3 \, d^{3} \cos \left (f x + e\right )^{2} - 45 \, c^{2} d + 30 \, c d^{2} - 17 \, d^{3} + {\left (15 \, c d^{2} - d^{3}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right ) + a}}{30 \, {\left (a f \cos \left (f x + e\right ) + a f \sin \left (f x + e\right ) + a f\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 1.23, size = 285, normalized size = 1.60 \[ -\frac {\left (1+\sin \left (f x +e \right )\right ) \sqrt {-a \left (\sin \left (f x +e \right )-1\right )}\, \left (15 a^{\frac {5}{2}} \sqrt {2}\, \arctanh \left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {a}}\right ) c^{3}-45 a^{\frac {5}{2}} \sqrt {2}\, \arctanh \left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {a}}\right ) c^{2} d +45 a^{\frac {5}{2}} \sqrt {2}\, \arctanh \left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {a}}\right ) c \,d^{2}-15 a^{\frac {5}{2}} \sqrt {2}\, \arctanh \left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {a}}\right ) d^{3}+6 d^{3} \left (a -a \sin \left (f x +e \right )\right )^{\frac {5}{2}}-30 \left (a -a \sin \left (f x +e \right )\right )^{\frac {3}{2}} a c \,d^{2}-10 \left (a -a \sin \left (f x +e \right )\right )^{\frac {3}{2}} a \,d^{3}+90 c^{2} d \,a^{2} \sqrt {a -a \sin \left (f x +e \right )}+30 a^{2} d^{3} \sqrt {a -a \sin \left (f x +e \right )}\right )}{15 a^{3} \cos \left (f x +e \right ) \sqrt {a +a \sin \left (f x +e \right )}\, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (d \sin \left (f x + e\right ) + c\right )}^{3}}{\sqrt {a \sin \left (f x + e\right ) + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\left (c+d\,\sin \left (e+f\,x\right )\right )}^3}{\sqrt {a+a\,\sin \left (e+f\,x\right )}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (c + d \sin {\left (e + f x \right )}\right )^{3}}{\sqrt {a \left (\sin {\left (e + f x \right )} + 1\right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________